﻿// =================================================================== 
// 项目说明
//====================================================================
// liucx @Copy Right 2019
// 文件： DrivingLicenseEntity.cs
// 项目名称：斑马车务
// 创建时间：2019/9/17
// 负责人：liucx
// ===================================================================

using System;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Entity
{
    /// <summary>
    ///数据实体  
    /// </summary>
    [PrimaryKey("DrivingLicenseID")]
    public class DrivingLicense
    {
        ///<summary>
        ///
        ///</summary>
        public DrivingLicense()
        {
        }


        ///<summary>
        ///驾驶证ID
        ///</summary>
        [Column("DrivingLicenseID", "驾驶证ID")]
        public int DrivingLicenseID { get; set; }

        ///<summary>
        ///用户ID
        ///</summary>
        [Column("UserID", "用户ID")]
        public long UserID { get; set; }

        ///<summary>
        ///驾驶证号
        ///</summary>
        [Column("DrivingLicenseCode", "驾驶证号")]
        public string DrivingLicenseCode { get; set; }

        ///<summary>
        ///姓名
        ///</summary>
        [Column("Name", "姓名")]
        public string Name { get; set; }

        ///<summary>
        ///性别(1:男2：女)
        ///</summary>
        [Column("Sex", "性别(1:男2：女)")]
        public int Sex { get; set; }

        ///<summary>
        ///国籍
        ///</summary>
        [Column("Nationality", "国籍")]
        public string Nationality { get; set; }

        ///<summary>
        ///住址
        ///</summary>
        [Column("Address", "住址")]
        public string Address { get; set; }

        ///<summary>
        ///出生日期
        ///</summary>
        [Column("BirthDate", "出生日期")]
        public DateTime BirthDate { get; set; }

        ///<summary>
        ///初次领证日期
        ///</summary>
        [Column("FirstIssueDate", "初次领证日期")]
        public DateTime FirstIssueDate { get; set; }

        ///<summary>
        ///准驾车型
        ///</summary>
        [Column("LicenseClass", "准驾车型")]
        public string LicenseClass { get; set; }

        ///<summary>
        ///开始有效日期
        ///</summary>
        [Column("BeginValidPeroid", "开始有效日期")]
        public DateTime BeginValidPeroid { get; set; }

        ///<summary>
        ///结束有效日期
        ///</summary>
        [Column("EndValidPeroid", "结束有效日期")]
        public DateTime EndValidPeroid { get; set; }

        ///<summary>
        ///发证机构
        ///</summary>
        [Column("Dep", "发证机构")]
        public string Dep { get; set; }

        ///<summary>
        ///照片地址
        ///</summary>
        [Column("PicPath", "照片地址")]
        public string PicPath { get; set; }

        ///<summary>
        ///城市(通过地址分析得出)
        ///</summary>
        [Column("City", "城市(通过地址分析得出)")]
        public string City { get; set; }

        ///<summary>
        ///创建时间
        ///</summary>
        [Column("CreatedDate", "创建时间")]
        public DateTime CreatedDate { get; set; }

        ///<summary>
        ///更新时间
        ///</summary>
        [Column("UpdatedDate", "更新时间")]
        public DateTime UpdatedDate { get; set; }

        ///<summary>
        ///逻辑标识(0:无效，1：有效)
        ///</summary>
        [Column("IsActive", "逻辑标识(0:无效，1：有效)")]
        public int IsActive { get; set; }

        ///<summary>
        ///区县
        ///</summary>
        [Column("Area", "区县")]
        public string Area { get; set; }

        ///<summary>
        ///
        ///</summary>
        [Column("InsureID", "")]
        public int InsureID { get; set; }

    }
}